#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QIcon>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    // 写文件绝对路径，不推荐
//    ui->actionNew->setIcon(QIcon("C:/Users/YANHAI/Downloads/plus.png"));
    ui->actionNew->setIcon(QIcon(":/Image/plus.png"));
    ui->actionOpen->setIcon(QIcon(":/Image/vip.png"));
}

MainWindow::~MainWindow()
{
    delete ui;
}

